package com.spider.lwlk.mongodb.workplace

import com.gmongo.GMongo

class Mongo {

    private static mongo = new GMongo('localhost:27017')

    private static db = mongo.getDB('test')

    public static withInstance(Closure clu) {

        clu.setDelegate(this);

        clu.call()
    }
}
